/*
 * @Author: sunbudao
 * @Date: 2019-12-09 14:03
 */
//调用接口配置文件
import { request } from 'config/request'
//城市与区域级联
export async function regionArea(params) {
  // console.log(params)
  return request({
      url: `admin/qrcode/region/area/tree/get`,
      method: 'GET',
      data: params,
      headers:{
          "Content-type":"application/json",
      }
  });
};

//根据城市查询项目
export async function getProduct(params) {
  // console.log(params)
  return request({
      url: `admin/qrcode/products/by-city`,
      method: 'GET',
      data: params,
      headers:{
          "Content-type":"application/json",
      }
  });
};

// 获取省市区
export async function queryAllAddress(params) {
	return request({
		url: 'admin/address/queryAllAddress',
		method: 'GET',
		data: params,
	});
};

//楼盘列表
export async function houseListGet(params) {
	return request({
		url: 'admin/estate/adminList',
		method: 'POST',
		data: params,
		headers:{
			"Content-type":"application/json",
		}
	});
  };

  //新增
  export async function addServer(params) {
    return request({
        url: '3rd/integral/saveIntegral',
        method: 'POST',
        headers:{
            "content-type":'application/json'
        },
        data: params,
    });
};

  //删除
  export async function delServer(params) {
    return request({
        url: '3rd/integral/deleteIntegrals',
        method: 'GET',
        headers:{
            "content-type":'application/json'
        },
        data: params,
    });
};
//详情
export async function projectDetail(params) {
  return request({
      url: '3rd/integral/selectIntegral',
      method: 'GET',
      headers:{
          "content-type":'application/json'
      },
      data: params,
  });
};





